﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class Sys_UserCollection : List<Sys_User>
    {
         public int IndexOf(Sys_User item)
        {
            return base.IndexOf(item);
        }
        public void Insert(int index, Sys_User item)
        {
            base.Insert(index, item);
        }
        public new void RemoveAt(int index)
        {
            base.RemoveAt(index);
        }
        public Sys_User this[int index]
        {
            get
            {
                return base[index];
            }
            set
            {
                base[index] = value;
            }
        }
        public void Add(Sys_User item)
        {
            base.Add(item);
        }
        public new void Clear()
        {
            base.Clear();
        }
        public new bool Contains(Sys_User item)
        {
            return base.Contains(item);
        }
        public new void CopyTo(Sys_User[] array, int arrayIndex)
        {
            base.CopyTo(array, arrayIndex);
        }
        public new int Count
        {
            get
            {
                return base.Count;
            }
        }
        public bool IsReadOnly
        {
            get
            {
                return IsReadOnly;
            }
        }
        public new void Remove(Sys_User item)
        {
            base.Remove(item);
        }
        public new IEnumerator<Sys_User> GetEnumerator()
        {
            return base.GetEnumerator();
        } 
    }
    public class Sys_User
    {
        private int _IdUser;

        public int IdUser
        {
            get { return _IdUser; }
            set { _IdUser = value; }
        }
        private string _UserNme;

        public string UserNme
        {
            get { return _UserNme; }
            set { _UserNme = value; }
        }
        private string _Password;

        public string Password
        {
            get { return _Password; }
            set { _Password = value; }
        }
        private Int16 _UserLevel;

        public Int16 UserLevel
        {
            get { return _UserLevel; }
            set { _UserLevel = value; }
        }
        private Boolean _ChangeUserName;

        public Boolean ChangeUserName
        {
            get { return _ChangeUserName; }
            set { _ChangeUserName = value; }
        }
        private Boolean _ChangePass;

        public Boolean ChangePass
        {
            get { return _ChangePass; }
            set { _ChangePass = value; }
        }
        private DateTime _ExpiryDate=DateTime.Now;

        public DateTime ExpiryDate
        {
            get { return _ExpiryDate; }
            set { _ExpiryDate = value; }
        }
        private Boolean _IsExpiry;

        public Boolean IsExpiry
        {
            get { return _IsExpiry; }
            set { _IsExpiry = value; }
        }
        private int _Expiry;

        public int Expiry
        {
            get { return _Expiry; }
            set { _Expiry = value; }
        }
        private DateTime _CreateDate = DateTime.Now;

        public DateTime CreateDate
        {
            get { return _CreateDate; }
            set { _CreateDate = value; }
        }
        private DateTime _UpdateDate = DateTime.Now;

        public DateTime UpdateDate
        {
            get { return _UpdateDate; }
            set { _UpdateDate = value; }
        }
        private Boolean _Status;

        public Boolean Status
        {
            get { return _Status; }
            set { _Status = value; }
        }

    }
}
